package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Attention;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AttentionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Attention record);

    Attention selectByPrimaryKey(Long id);

    List<Attention> selectAll();

    int updateByPrimaryKey(Attention record);

    Attention getById(@Param("currentUserId") Long currentUserId, @Param("attentionUserId") Long attentionUserId);

    int fansCount(Long attentionUserId);

    int attentionNum(Long currentUserId);

    void deleteFocus(@Param("loginUserId") Long loginUserId, @Param("userId") Long userId);

    void insertFocus(@Param("loginUserId") Long loginUserId, @Param("userId") Long userId);

}